package com.vanrin.aweatherforecast.model;

import java.util.ArrayList;

public class WeatherSet {

    public static int IMPOSSIBLE_TEMP = -2000;

    public String city = null;
    public String postalCode = null;
    public String latitude = null;
    public String longitude = null;
    public String currentDate = null;
    private WeatherCurrentCondition curCondition = null;
    private ArrayList<WeatherForecastCondition> foreConditionList = new ArrayList<WeatherForecastCondition>();

    public void setCurCondition(WeatherCurrentCondition curCondition) {
        this.curCondition = curCondition;
    }

    public WeatherCurrentCondition getCurCondition() {
        return curCondition;
    }

    public void setForeConditionList(ArrayList<WeatherForecastCondition> foreConditionList) {
        this.foreConditionList = foreConditionList;
    }

    public ArrayList<WeatherForecastCondition> getForeConditionList() {
        return foreConditionList;
    }

    public void addForecastCondition(WeatherForecastCondition wfc) {
        foreConditionList.add(wfc);
    }

    public WeatherForecastCondition lastForecastCondi() {
        return foreConditionList.get(foreConditionList.size() - 1);
    }
    
    public WeatherForecastCondition getWeatherForecastCondition(int index){
        return foreConditionList.get(index);
    }

}
